﻿using Coldairarrow.Entity.Backstage.BS_Specials;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Backstage.BS_Specials
{
    public interface IBS_SpecialBusiness
    {
        Task<PageResult<BS_SpecialDTO>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<BS_Special> GetTheDataAsync(string id);
        List<BS_Special> GetPList();
        Task AddDataAsync(BS_Special data);
        Task UpdateDataAsync(BS_Special data);
        Task DeleteDataAsync(List<string> ids);

        Task<object> GetFontListAsync();
    }

    public class BS_SpecialDTO : BS_Special
    { 
        public IEnumerable<BS_Special> Child { get; set; }
    }
}